import request from './request'
import { useUserStore } from "../store/modules/user"
// 获取工单归档列表
export function getOrderArchivedList(data) {
    let token = {
        [useUserStore().row.tokenName]: useUserStore().token
    }
    return request({
        url: '/work/order/getOrderArchivedList',
        method: 'post',
        headers: token,
        data
    })
}

//工单归档
export function orderArchived(data) {
    let token = {
        [useUserStore().row.tokenName]: useUserStore().token
    }
    return request({
        url: '/work/order/orderArchived',
        method: 'post',
        headers: token,
        data
    })
}
//获取归档列表状态数量
export function getOrderArchivedStatusQty() {
    let token = {
        [useUserStore().row.tokenName]: useUserStore().token
    }
    return request({
        url: '/work/order/getOrderArchivedStatusQty',
        method: 'get',
        headers: token,
    })
}